<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core">
<h:body>

    <ui:composition template="/template/layout.xhtml">

        <ui:define name="body">
            <h2>registration code here</h2>

            <h:form>
                <h:panelGrid columns="2">
                <h:outputLabel value="First Name" for="firstName"/>
                <h:inputText id="firstName" value="#{registrationBean.firstName}"
                             binding="#{registrationBean.firstNameInput}" />

                <h:outputLabel value="Last Name" for="lastName" />
                <h:inputText id="lastName" value="#{registrationBean.lastName}"
                        binding="#{registrationBean.lastNameInput}"/>

                <h:outputLabel value="sex" />
                    <h:selectOneMenu value="#{registrationBean.sexOptions}" >
                        <f:selectItems >
                        </f:selectItems>
                    </h:selectOneMenu>




                <h:commandButton value="Submit"
                                 actionListener="#{registrationBean.registerActionListener}"
                                 action="#{registrationBean.registerAction}"/>

                    <h:commandButton value="Cancel"
                                     action="/index"/>

                </h:panelGrid>
            </h:form>


        </ui:define>

    </ui:composition>

</h:body>

</html>